<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:88:"E:\phpset\phpSet\www\new shop\shop\public/../application/index\view\index\commodity.html";i:1541822092;s:72:"E:\phpset\phpSet\www\new shop\shop\application\index\view\comm\left.html";i:1541827692;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="/new shop/shop/public/static/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
</head>
<body class="gray-bg">
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>商城后台</title>
    <link rel="shortcut icon" href="/new shop/shop/public/static/favicon.ico">
    <link href="/new shop/shop/public/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/animate.min.css" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <script src="/new shop/shop/public/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="/new shop/shop/public/static/layer/layer.js"></script>
    <script src="/new shop/shop/public/static/js/jia.js"></script>
    <script>
        // $(function(){
        //     //self.location.href="https://www.kancloud.cn/manual/thinkphp5/177529";
        //     $(window.parent.document).find("#iframe").attr("src", "https://www.kancloud.cn/manual/thinkphp5/177529");
        // });
    </script>
</head>
</html>

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>商品 <small>详情</small></h5>
                </div>
                <div class="ibox-content">
                    <table class="table table-striped table-bordered table-hover dataTables-example">
                        <thead>
                            <tr>
                                <th></th>
                                <th width="5%">商品编号</th>
                                <th>商品名称</th>
                                <th>商品图片</th>
                                <th>状态</th>
                                <th>购买量</th>
                                <th>商品类型</th>
                                <th>商品品牌</th>
                                <th width="5%">商品属性</th>
                                <th>市场价</th>
                                <th>活动价</th>
                                <th>成本价</th>
                                <th>本站价</th>
                                <th>库存</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach($commodity as $k): ?>
                            <tr class="gradeX">
                                <th><input type="checkbox" class="i-checks" name="input[]"></th>
                                <th><?php echo $k['id']; ?></th>
                                <th><?php echo $k['name']; ?></th>
                                <th>
                                    <img width="80px" height="80px" src="/new shop/shop/public/static/img_issue/<?php echo $k['photo']; ?>">
                                </th>
                                <th><?php echo $k['putaway']; ?></th>
                                <th><?php echo $k['xiaoliang']; ?></th>
                                <th><?php echo $k['classify']; ?></th>
                                <th><?php echo $k['brand']; ?></th>
                                <th><?php echo $k['attr']; ?></th>
                                <th><?php echo $k['bazaar']; ?></th>
                                <th><?php echo $k['active']; ?></th>
                                <th><?php echo $k['cost']; ?></th>
                                <th><?php echo $k['stand']; ?></th>
                                <th><?php echo $k['inventory']; ?></th>
                                <th width="12%">
                                    <a  href="<?php echo url('index/issues/mod'); ?>?id=<?php echo $k['id']; ?>" id="xiu" class="btn btn-info "><i class="fa fa-paste"></i> <span class="bold">编辑</span></a>
                                    <a  href="javascript:;" onclick="deletel('<?php echo url('index/index/delcommodity'); ?>',<?php echo $k['id']; ?>)" class="btn btn-warning del"><i class="fa fa-warning"></i><span class="bold">删除</span></a>
                                </th>
                            </tr>
                            <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/new shop/shop/public/static/js/jquery.min.js?v=2.1.4"></script>
<script src="/new shop/shop/public/static/js/bootstrap.min.js?v=3.3.5"></script>
<script src="/new shop/shop/public/static/js/plugins/jeditable/jquery.jeditable.js"></script>
<script src="/new shop/shop/public/static/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="/new shop/shop/public/static/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script src="/new shop/shop/public/static/js/content.min.js?v=1.0.0"></script>
<script>
    $(document).ready(function(){$(".dataTables-example").dataTable();var oTable=$("#editable").dataTable();oTable.$("td").editable("../example_ajax.php",{"callback":function(sValue,y){var aPos=oTable.fnGetPosition(this);oTable.fnUpdate(sValue,aPos[0],aPos[1])},"submitdata":function(value,settings){return{"row_id":this.parentNode.getAttribute("id"),"column":oTable.fnGetPosition(this)[2]}},"width":"90%","height":"100%"})});function fnClickAddRow(){$("#editable").dataTable().fnAddData(["Custom row","New row","New row","New row","New row"])};
</script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
</body>
</html>
